package com.pand.model.customer;

import com.pand.model.BaseObject;

import javax.persistence.*;
import java.sql.Timestamp;

/**
 * 
 * @ClassName: CustomerCancelOrder
 * @Description: 客户取消订单
 *
 */
@Entity
@Table(name = "biz_customer_cancel_Order")
@SequenceGenerator(name = "SeqCustomerCancelOrder", sequenceName = "seq_customer_cancel_Order", allocationSize = 1)
public class CustomerCancelOrder extends BaseObject {

	/**
	 * @Fields serialVersionUID :
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	private Long id;

	/**
	 * 客户ID
	 */
	private Long customerId;

	/**
	 * 取消次数
	 */
	private Integer cancelNum;

	/**
	 * 修改时间
	 */
	private Timestamp updateTime;

	public CustomerCancelOrder() {
	}

	public CustomerCancelOrder(Long customerId, Integer cancelNum,
			Timestamp updateTime) {
		this.customerId = customerId;
		this.cancelNum = cancelNum;
		this.updateTime = updateTime;
	}

	@Id
	@Column(name = "ID")
	@GeneratedValue(generator = "SeqCustomerCancelOrder")
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "customer_id")
	public Long getCustomerId() {
		return customerId;
	}

	public void setCustomerId(Long customerId) {
		this.customerId = customerId;
	}

	@Column(name = "cancel_num")
	public Integer getCancelNum() {
		return cancelNum;
	}

	public void setCancelNum(Integer cancelNum) {
		this.cancelNum = cancelNum;
	}

	@Column(name = "update_time")
	public Timestamp getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Timestamp updateTime) {
		this.updateTime = updateTime;
	}

}
